<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>运营管理平台 - 顶十</title>
<%@include file="../include/imports.jsp"%>
<script src="/assets/js/manager/category.js"></script>
</head>
<body style="overflow: auto;">
	<div class="navbar" role="navigation">
		<%@include file="../include/top.jsp"%>
	</div>
	<div class="container-fluid content">
		<div class="row">
			<%@include file="../include/menu.jsp"%>
			<div class="main">
				<div class="row">
					<div class="col-lg-12">
						<ol class="breadcrumb">
							<li><i class="fa fa-home"></i><a href="index.do">首页</a></li>
							<li><i class="fa fa-laptop"></i><span>商品分类</span></li>
						</ol>
					</div>
				</div>
				<div class="row" style="padding-left: 12px;">
					<div id="dataTable"
						style="border-radius: 0; display: inline-block; vertical-align: middle;"></div>
					<div id="category-editer" style="height: 652px; border: 1px #ccc solid; display: inline-block; vertical-align: middle; background-color: #fff; width: 75%;">
						<div class="form" style="height: 620px; display: inline-block; width: 100%; overflow: auto;">
							<input type="hidden" id="submit-url" value="category/update.do" />
							<input type="hidden" id="delete-url" value="category/delete.do" />
							<input type="hidden" name="id" />
							<input type="hidden" name="uuid" />
							<input type="hidden" name="parentId" />
							<input type="hidden" name="parentUuid" />
							<br>
							<div class="input-box">
								<label class="from-label" for="name">名称：<notnull></label>
								<input id="name" type="text" allowBlank="false" name="name" class="form-control" placeholder="名称" style="width: 600px;" />
							</div>
							<br>
							<!-- <div class="input-box" style="width: 600px;text-align: center;">
								<label class="from-label" ></label>
								<label class="from-label" ></label>
								<input type="button" id="add-new-attr" class="btn btn-sm btn-primary" style="margin: 0;" value="添加新属性">
							</div> -->
						</div>
						<div class="form" style="width: 100%; background-color: #ddd; text-align: center;">
							<input type="button" class="btn btn-sm btn-danger" onclick="deleteEditer(this, false, deleteCallback)" value="删除" />
							<input type="button" class="btn btn-sm btn-primary" onclick="addChild(this)" value="增加子级" />
							<input type="button" class="btn btn-sm btn-info" onclick="addBrother(this)" value="增加同级" />
							<input type="button" class="btn btn-sm btn-success" onclick="submitEditer(this, false)" value="保存" />
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<%@include file="../include/modal.jsp"%>
	<div class="clearfix"></div>
</body>
</html>